package com.Liux.blog.service;

import com.Liux.blog.entity.Article;
import com.Liux.blog.entity.ArticleVo;
import com.Liux.blog.vo.ResultVo;

import java.util.List;

public interface ArticleService {

    List<ArticleVo> getArticle();

    List<Article> getTop6Article();

    Article getArticleById(String aid);

    ResultVo createArticle(Article article);

    //修改
    ResultVo updateArticle(String id,String title,String center);
    //删除
    ResultVo deleteArticle(String aid);
    //详情
    ResultVo ArticleById(String aid);
    //列表
    ResultVo ArticleList(int pageNum,int limit);


}
